#include "stdafx.h"

#include "DirectionnalLight.h"

namespace PM3D
{
    DirectionnalLight::DirectionnalLight(const D3DXCOLOR& ambient,const D3DXCOLOR& diffuse,
            const D3DXCOLOR& specular, const D3DXVECTOR3& direction) 
            : Light(ambient,diffuse,specular)
    {
        light_.Type = D3DLIGHT_DIRECTIONAL;
        light_.Direction = direction;
    }

    DirectionnalLight::~DirectionnalLight()
    {
    }

    ///////////////////////////////////////////////////
    // getter
    ///////////////////////////////////////////////////
    D3DXVECTOR3 DirectionnalLight::getDirection() const
    {
        return light_.Direction;
    }

    ///////////////////////////////////////////////////
    // Setter
    ///////////////////////////////////////////////////
    void DirectionnalLight::setDirection(const D3DXVECTOR3& direction)
    {
        light_.Direction = direction;
    }
}   //namespace PM3D
